package com.aly.beanValidate.core.validator;

import com.aly.beanValidate.core.GlobalConfigs;
import com.aly.beanValidate.core.Util;
import org.dom4j.Element;

public abstract class CheckValidator implements Validatable {
    protected final String name;
    protected final GlobalConfigs globalConfigs;

    protected CheckValidator(Element element, GlobalConfigs globalConfigs) {
        name = Util.attr(element, "name", null);
        this.globalConfigs = globalConfigs;
    }

    public String getName() {
        return name;
    }
}
